.class Lcom/estrongs/android/taskmanager/fp;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/PreferencesActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/fp;->a:Lcom/estrongs/android/taskmanager/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
    .locals 3

    const/4 v2, 0x1

    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/fp;->a:Lcom/estrongs/android/taskmanager/PreferencesActivity;

    iget-object v1, v1, Lcom/estrongs/android/taskmanager/PreferencesActivity;->a:Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v2}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/fp;->a:Lcom/estrongs/android/taskmanager/PreferencesActivity;

    invoke-static {v1, v2}, Lcom/estrongs/android/taskmanager/PreferencesActivity;->a(Landroid/content/Context;Z)V

    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/fp;->a:Lcom/estrongs/android/taskmanager/PreferencesActivity;

    invoke-static {v1, v0}, Lcom/estrongs/android/taskmanager/PreferencesActivity;->b(Landroid/content/Context;Z)V

    return v2
.end method
